'use strict'

module.exports = ({ POST, GET }) => ({
  // 获取Token
  Code2Session: (...args) =>
    GET('https://api.weixin.qq.com/sns/jscode2session', ...args),
  // 发送模板信息
  SendTemplateMessageApi: (...args) =>
    POST(
      'https://api.weixin.qq.com/cgi-bin/message/wxopen/template/send',
      ...args
    ),
})
